<!DOCTYPE html>
<html lang="en">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" th:href="@{/css/me.css}">
    <link rel="stylesheet" th:href="@{/lib/typo/typo.css}">
    <link rel="stylesheet" th:href="@{/lib/editormd/css/editormd.css}">
    <title th:replace="${title}">博客管理-发布</title>
</head>
<body>
<!--    导航-->
<nav th:fragment="menu(n)" class="ui inverted attached segment m-padded-tb-mini">
    <div class="ui container">
        <div class="ui inverted secondary menu">
            <h2 class="ui teal header item">大鱼</h2>
            <a th:href="@{/}" class="item" th:classappend="${n==1}?'active'" ><i class=" home icon"></i>首页</a>
            <a th:href="@{/toType}" class="item" th:classappend="${n==2}?'active'"><i class=" idea icon"></i>分类</a>
            <a th:href="@{/toTag}" class="item" th:classappend="${n==3}?'active'"><i class=" tags icon"></i>标签</a>
            <a th:href="@{/archives}" class="item" th:classappend="${n==4}?'active'"><i class=" clone icon"></i>归档</a>
            <a th:href="@{/about}" class="item" th:classappend="${n==5}?'active'"><i class=" info icon"></i>关于我</a>
            <div class="right item">
                <div class="ui icon inverted transparent input">
                    <input type="text" placeholder="Search....">
                    <i class="search link icon"></i>
                </div>
            </div>
        </div>
    </div>
</nav>

<!--   后台 导航-->
<nav th:fragment="menu2(n)" class="ui inverted attached segment m-padded-tb-mini">
    <div class="ui container">
        <div class="ui inverted secondary menu">
            <h2 class="ui teal header item"><a th:href="@{bIndex.html}">后台管理</a></h2>
            <a th:href="@{/toBlogs}" class="item" th:classappend="${n==1}?'active'"><i class=" home icon"></i>博客</a>
            <a th:href="@{/blogstype}" class="item" th:classappend="${n==2}?'active'"><i class=" idea icon"></i>分类</a>
            <a th:href="@{/blogstag}" class="item" th:classappend="${n==3}?'active'"><i class=" tags icon"></i>标签</a>
            <div class="right menu">
                <div class="ui dropdown item">
                    <div class="text">
                        <img src="https://unsplash.it/100/100?image=1005" crossorigin="ui avatar image">
                        [[${#session.getAttribute('user').nickname}]]
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a th:href="@{/logout}" class="item">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</nav>
<!--底部footer-->
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img th:src="@{/images/1.jpg}" class="ui rounded image" style="width: 110px">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">故事</a>
                    <a href="#" class="item">故事</a>
                    <a href="#" class="item">故事</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">联系我</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">Emile:748835228@qq.com</a>
                    <a href="#" class="item">QQ: 748835228</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header">最新博客</h4>
                <p>111111111111111111111111111111</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
    </div>
</footer>
</body>
</html>